/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wiai.untl.core.dao.jpa;

import com.wiai.untl.core.dao.SemesterDAO;
import com.wiai.untl.core.entity.Semester;
import java.util.List;

/**
 *
 * @author Hendro Steven
 */
public class SemesterDAOImpl extends GeneralDAOImpl implements SemesterDAO{

    @Override
    public List<Semester> getAllSemester() {
        return getJpaTemplate().find("Select s From Semester s");
    }

    @Override
    public Semester getById(long id) {
        return (Semester)getJpaTemplate().find(Semester.class, id);
    }
    
}
